#encoding=utf-8
import pymongo

class DBConn:
	conn = None
	servers = 'mongodb://localhost:27017'

	def connect(self):
		self.conn = pymongo.MongoClient(self.servers)

	def close(self):
		return self.conn.close()

	def getConn(self):
		return self.conn